#include "gameview.h"
#include "gamescene.h"
#include <QDebug>

GameView::GameView(QWidget * parent)
    :QGraphicsView(parent)
{
    setViewportUpdateMode(QGraphicsView::NoViewportUpdate);

    setFrameShape(QFrame::NoFrame);

    setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);

    timer.start(100,this);
}

GameView::~GameView()
{
}

void GameView::timerEvent(QTimerEvent *)
{
    viewport()->update();
}

